package com.mdjnu.mapper;

import com.mdjnu.pojo.Categories;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper//告诉SpringBoot这是一个Mapper类
public interface CategoriesMapper {
    @Select("select * from categories")
    List<Categories> getAllCategories();
}
